#include "dyn_planarBilliard_arcLengthFunction.h"

ArcLengthFunction::ArcLengthFunction(Functor &_boundary, Functor &_diffBoundary)
    : boundary(_boundary), diffBoundary(_diffBoundary)
{
}

double ArcLengthFunction::operator ()(const double x)
{
    return sqrt(pow(boundary(x),2.0)+pow(diffBoundary(x),2.0));
}
